package top.mschen.blog.service.oauth;


import org.springframework.security.core.userdetails.UserDetailsService;
import top.mschen.blog.dto.UserFormDto;
import top.mschen.blog.dto.oauth.UserJsonDto;
import top.mschen.blog.dto.oauth.UserOverviewDto;

/**
 * @author Shengzhao Li
 */
public interface UserService extends UserDetailsService {

    UserJsonDto loadCurrentUserJsonDto();

    UserOverviewDto loadUserOverviewDto(UserOverviewDto overviewDto);

    boolean isExistedUsername(String username);

    String saveUser(UserFormDto formDto);
}